home *** CD-ROM | disk | FTP | other *** search
- #
- # Add another include file.
- #
- # $VER: addinc V1.00 (18.11.1992)
- #
-
- # remember where we were
- push pos
-
- # goto top
- top
-
- # search Include-statement. This is now too reliable
- find ` Includes'
-
- # leave headline
- down down
-
- # look for the first line that doesn't have a #include in it
- first while c="#" down
-
- # insert a new line and text
- insline `#include '
-
- # ask for the name
- # look at the first char
- # if it's a '"', add a '"' at the end, too.
- # else add <>
- # goto last position and go down one line, because we have inserted one
- escimm (`) wleft ifelse c=34 `last (")' `if c<>"<" `(<)' last (>)' pop auto down
-